﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Main.master" AutoEventWireup="true"
	CodeFile="TicketBuy.aspx.cs" Inherits="Pages_TicketBuy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
	<div style="text-align: left;">
		<asp:Label runat="server" Text="Всего мест в автобусе: " /><asp:Label ID="lblTicketsCount" runat="server" />
		<br />

		<asp:Label runat="server" Text="Место отправления: " />
		<asp:DropDownList runat="server" ID="ddlBeginStation" OnSelectedIndexChanged="ddlBeginStation_SelectedIndexChanged" AutoPostBack="true"/><br />

		<asp:Label runat="server" Text="Место назначения: " />
		<asp:DropDownList runat="server" ID="ddlEndStation" /><br />

		
		<asp:Label runat="server" Text="Оставшихся мест: " />
		<asp:Label ID="lblAvailablePlacesCount" runat="server" /><br />
		<asp:Label runat="server" Text="Занятые места: " />
		
		<asp:Label runat="server" ID="lblSelledTickets" /><br />
		<br />
		<asp:Label runat="server" Text="Место: " /><asp:DropDownList runat="server" ID="ddlAvailablePlaces" />
		<asp:Button runat="server" ID="btnBuy" Text="Купить" OnClick="btnBuy_Click"/>
		<%--<a href="PayTicket.aspx">Купить</a>--%>
	</div>
</asp:Content>
